﻿using System;

namespace TicketReservationSystem.Common.Entities
{
    public class Flight
    {
        public Flight(int number, Plane plane, Airport departure, Airport destination, DateTime departureTime, DateTime arrivalTime, float price)
        {
            Number = number;
            Plane = plane;
            Departure = departure;
            Destination = destination;
            DepartureTime = departureTime;
            ArrivalTime = arrivalTime;
            Price = price;
        }

        public Flight() {}

        public int ID { get; set; }

        public int Number { get; set; }

        public Plane Plane { get; set; }

        public Airport Departure { get; set; }

        public Airport Destination { get; set; }

        public DateTime DepartureTime { get; set; }

        public DateTime ArrivalTime { get; set; }

        public float Price { get; set; }
    }
}
